﻿using Microsoft.Practices.EnterpriseLibrary.Caching;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;

namespace PomodoroSuite.FW.Comun.Caching
{
    internal class CacheSingleton
    {
        #region " Campos "

        private static ICacheManager _instancia;

        #endregion

        #region " Propiedades "

        public static ICacheManager Instancia
        {
            get
            {
                if (_instancia == null)
                    _instancia = EnterpriseLibraryContainer.Current.GetInstance<ICacheManager>();

                return _instancia;
            }
        }

        #endregion
    }
}
